<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    img {
        width: 40%;
    }

    /*  
        图片居中需要，设置父容器 
    */
    div {
        text-align: center;
    }
</style>

<body>
    <div>
        <img src="./../resources/素材3.png">
    </div>

</body>

</html>